package com.bosssoft.permission.centre.pojo.dto.pcp;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.sd365.common.core.common.pojo.dto.TenantBaseDTO;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;




@AllArgsConstructor
@Data
public class RoleDTO extends TenantBaseDTO {

    List<ResourceDTO> resourceDTOS=new ArrayList<>();


    /**
     * 角色名
     */

    private String name;

    /**
     * 角色代码
     */

    private String code;

    /**
     * 备注
     */

    private String remark;




    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createdTime;

    /**
     * 修改时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updatedTime;

    /**
     *  机构
     */
    private OrganizationDTO organizationDTO;
    /**
     *  公司
     */
    private CompanyDTO companyDTO;

    /**
     * 客户
     */
    private  TenantDTO tenantDTO;

    public RoleDTO(){
        organizationDTO = new OrganizationDTO();
        companyDTO = new CompanyDTO();
        tenantDTO = new TenantDTO();
    }
}
